<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${systemInfo.systemName} - Powered By Jeasyframe.org</title>
<jsp:include page="head.jsp"></jsp:include>
<link href="<%=path %>/js/jquery-easyui-1.2.6/themes/gray/easyui.css" rel="stylesheet" type="text/css" />
<link href="<%=path %>/js/jquery-easyui-1.2.6/themes/icon.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path %>/js/jquery-easyui-1.2.6/jquery.easyui.min.js"></script>
<script type="text/javascript">
	$(function(){
			var menuUrl="${firstMenu.menuUrl}";
			if(menuUrl.indexOf("?")!=-1){
				menuUrl="<%=path %>/${firstMenu.menuUrl }&currentMenuId=${firstMenu.menuId}";
			}else{
				menuUrl="<%=path %>/${firstMenu.menuUrl }?currentMenuId=${firstMenu.menuId}";
			}
			createTab('${firstMenu.menuName}',menuUrl);
			var leftMenu = $("#leftMenu");
			leftMenu.height($(window).height()-leftMenu.prev().height()).fadeIn(200);
	});
	function openQuickMenu(){
		var widthVal=800;
		var heightVal=600;
		$.layer({
		    type : 2,
		    title : '快捷菜单',
		    iframe : {src : "<%=path%>/menu/menu_queryApps_quickmenuAction.action"},
		    area : [widthVal , heightVal],
		    offset : ['20px',''],
		    end : function(){
		    	$("#refreshForm").submit();
		    }
		});
	}
</script>
</head>

<body>
	<div class="info_left">
        <div class="info_left_tit">
			<span class="info_left_tit_H2" style="width:100%">${parentMenu.menuNo}</span>
            <span class="info_left_tit_H1">${parentMenu.menuName}</span><a title="返回首页" href="<%=path %>/default.action"><img src="images/main_top.png" width="38" height="38" /></a>
        </div>
        <div class="info_left_main" id="leftMenu" style="overflow: auto;display:none;">
        	<ul>
            	<c:forEach items="${childMenuList}" var="menu" varStatus="status">
            		<c:if test='${fn:indexOf(menu.menuUrl,"?") eq -1}'>
        				<li><a class="leftMenu" href="javascript:void(0);" onclick="createTab('${menu.menuName }','<%=path %>${menu.menuUrl}?currentMenuId=${menu.menuId}')" >${menu.menuName}</a></li>
                	</c:if>
                	<c:if test='${fn:indexOf(menu.menuUrl,"?") ne -1}'>
        				<li><a class="leftMenu" href="javascript:void(0);" onclick="createTab('${menu.menuName }','<%=path %>${menu.menuUrl}&currentMenuId=${menu.menuId}')" >${menu.menuName}</a></li>
                	</c:if>
                </c:forEach>
				
            </ul>
        </div>
    </div>
<div class="info_right" >
	<!--  <iframe width="100%" frameborder="0" src="<%=path %>${firstMenuUrl}" scrolling="auto" id="iframepage" name="iframepage" ></iframe>-->
		<div class="info_right_tit" style="float:none;font-size:12px; color:#000;font-weight: bold;">历史操作：
					<span id="historyMenuList">
					    <c:forEach items="${historyMenuList }" var="historyMenu">
					    	<c:if test='${fn:indexOf(historyMenu.menuUrl,"?") eq -1}'>
		        				<a style="font-size:12px; color:#999;" source="${historyMenu.menuName}" onclick="createTab('${historyMenu.menuName}','<%=path %>${historyMenu.menuUrl }?currentMenuId=${historyMenu.menuId}')" href="javascript:void(0);">&lt;${historyMenu.menuName }&gt;</a>
		                	</c:if>
		                	<c:if test='${fn:indexOf(historyMenu.menuUrl,"?") ne -1}'>
		        				<a style="font-size:12px; color:#999;" source="${historyMenu.menuName}" onclick="createTab('${historyMenu.menuName}','<%=path %>${historyMenu.menuUrl }&currentMenuId=${historyMenu.menuId}')" href="javascript:void(0);">&lt;${historyMenu.menuName }&gt;</a>
		                	</c:if>
					    </c:forEach>
				    </span>
				    <span onclick="openQuickMenu()" style="float:right;padding-right:30px;cursor: pointer;padding-top:10px;font-size:14px;font-weight: bold;color: red;"><img src="<%=path %>/images/fly.png"/></span>
				    </div>
	<div id="right_tabs" class="easyui-tabs" tools="#tab-tools">
	</div>
</div>
</body>
</html>


